<?php
/*
function my_fields($fields) {
	$fields['new'] = '<p>Some new input field here</p>';
	return $fields;
	}
add_filter('comment_form_default_fields','my_fields');
*/
/*-----------------------------------------------------------------------------------*/
/* Options Framework Functions
/*-----------------------------------------------------------------------------------*/

/* Set the file path based on whether the Options Framework is in a parent theme or child theme */

if ( STYLESHEETPATH == TEMPLATEPATH ) {
	define('OF_FILEPATH', TEMPLATEPATH);
	define('OF_DIRECTORY', get_bloginfo('template_directory'));
} else {
	define('OF_FILEPATH', STYLESHEETPATH);
	define('OF_DIRECTORY', get_stylesheet_directory_uri());
}

/* These files build out the options interface.  Likely won't need to edit these. */

require_once (OF_FILEPATH . '/admin/admin-functions.php');		// Custom functions and plugins
require_once (OF_FILEPATH . '/admin/admin-interface.php');		// Admin Interfaces (options,framework, seo)

/* These files build out the theme specific options and associated functions. */

require_once (OF_FILEPATH . '/admin/theme-options.php'); 		// Options panel settings and custom settings
require_once (OF_FILEPATH . '/admin/theme-functions.php'); 	    // Theme actions based on options settings

/*-----------------------------------------------------------------------------------*/
/* End Options Framework Functions
/*-----------------------------------------------------------------------------------*/

include(TEMPLATEPATH . '/includes/functions/sidebars.php'); 
include(TEMPLATEPATH . '/includes/widgets.php'); 
include(TEMPLATEPATH . '/includes/functions/shortcodes.php');
include(TEMPLATEPATH . '/includes/functions/custom-post-types.php');
include(TEMPLATEPATH . '/includes/functions/menus.php');
include(TEMPLATEPATH . '/includes/functions/custom_metaboxes.php');
include(TEMPLATEPATH . '/includes/functions/custom_functions.php');
include(TEMPLATEPATH . '/includes/functions/core_functions.php');



/*
$file_dir2=get_bloginfo('template_directory');

wp_enqueue_script("searchbox", $file_dir2 ."/js/searchbox.js", false, "1.0",true);

$search_text=get_option('zx_search_text');
$params2= array(
  'search_text' => $search_text,
);

wp_localize_script( 'searchbox', 'my_params2', $params2 );

remove_filter('comment_text', 'wptexturize');

*/

/*-----------------------------------------------------------------------------------*/
/* Shortcode Generator Functions
/*-----------------------------------------------------------------------------------*/

require_once (TEMPLATEPATH . '/includes/functions/tinymceModules/tinymce.php');

/*-----------------------------------------------------------------------------------*/
/* Google Plus Button
/*-----------------------------------------------------------------------------------*/

function pro_header_codes(){ ?>
 
  <!-- Google Plus One -->
  <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
 
<?php } add_action( 'wp_head', 'pro_header_codes' );

/*-----------------------------------------------------------------------------------*/
/* RSS Support for Custom Post Types
/*-----------------------------------------------------------------------------------*/

function myfeed_request($qv) {
	if (isset($qv['feed']))
		$qv['post_type'] = get_post_types( array( 'public' => true ) );
	return $qv;
}
add_filter('request', 'myfeed_request');
